<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class AssistantType extends Model
{
    use HasFactory, SoftDeletes;

    protected $fillable = [
        'name', 'sort'
    ];

    public function assistants()
    {
        return $this->hasMany(User::class);
    }

    public function costRules()
    {
        return $this->hasMany(CostRule::class);
    }
}
